package com.example.admin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 字典信息表
 * </p>
 *
 * @author wangkai
 * @since 2019-06-04
 */
@TableName("tbl_sys_dict_info")
public class SysDictInfo extends Model<SysDictInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 类型id
     */
    private Integer typeId;

    /**
     * 字段名
     */
    @TableField("FIELD_NAME")
    private String fieldName;

    /**
     * 值
     */
    @TableField("FIELD_VAL")
    private String fieldVal;

    /**
     * 父ID的值
     */
    @TableField("PARENT_FIELD_VAL")
    private String parentFieldVal;

    /**
     * 默认选中，0未选中，1选中
     */
    @TableField("SELECTED")
    private Integer selected;

    /**
     * 状态，Y为可用，N为不可用
     */
    private Integer delFlag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }
    public String getFieldVal() {
        return fieldVal;
    }

    public void setFieldVal(String fieldVal) {
        this.fieldVal = fieldVal;
    }
    public String getParentFieldVal() {
        return parentFieldVal;
    }

    public void setParentFieldVal(String parentFieldVal) {
        this.parentFieldVal = parentFieldVal;
    }
    public Integer getSelected() {
        return selected;
    }

    public void setSelected(Integer selected) {
        this.selected = selected;
    }
    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysDictInfo{" +
        "id=" + id +
        ", typeId=" + typeId +
        ", fieldName=" + fieldName +
        ", fieldVal=" + fieldVal +
        ", parentFieldVal=" + parentFieldVal +
        ", selected=" + selected +
        ", delFlag=" + delFlag +
        "}";
    }
}
